<template>
    <div class="header">
        <div class="container">
            <div class="logo">
                <a href="/#/movies">
                    <img class="logo-img" src="../assets/images/logo.png" alt="">
                </a>

            </div>
            <div class="category">
                <ul>
                    <li><a href="javacript:;">剧集</a></li>
                    <li><a href="javacript:;">电影</a></li>
                    <li><a href="javacript:;">综艺</a></li>
                    <li><a href="javacript:;">VIP会员</a></li>
                    <li><a href="javacript:;">导航</a></li>
                </ul>
            </div>
            <div class="search">
                <div class="search-box">
                    <input class="search-input" type="text">
                    <a class="hot-search-button" href="">
                        <img src="../assets/images/hot.png" alt="">
                        热搜
                    </a>
                    <div class="search-button-box">
                        <img src="../assets/images/search.png" alt="">
                        搜全网
                    </div>
                </div>
            </div>
            <div class="navs">
                <div class="nav-item">
                    <img src="../assets/images/member.png" alt="">
                    <div class="item-text">开通会员</div>
                </div>
                <div class="nav-item">
                    <img src="../assets/images/looked.png" alt="">
                    <div class="item-text">看过</div>
                </div>
                <div class="nav-item">
                    <img src="../assets/images/like.png" alt="">
                    <div class="item-text">关注</div>
                </div>
                <div class="nav-item">
                    <img src="../assets/images/upload.png" alt="">
                    <div class="item-text">上传</div>
                </div>
                <div class="nav-item">
                    <img src="../assets/images/client.png" alt="">
                    <div class="item-text">客户端</div>
                </div>
                <div class="nav-item">
                    <img src="../assets/images/me.png" alt="">
                    <div class="item-text">个人中心</div>
                </div>
            </div>
        </div>

    </div>
</template>

<script>
    export default {
        name: "NavHeader"
    }
</script>

<style lang="scss">
    .header {
        width: 100%;
        height: 70px;
        background: #121212;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99999;
        .container {
            width: 1800px;
            margin: 0 auto;
            height: 70px;
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            .logo {
                .logo-img {
                    width: 180px;
                    height: 38px;
                }
            }
            .category {
                ul {
                    list-style: none;
                    font-size: 14px;
                    padding: 0;
                    margin-left: 10px;
                    li {
                        display: inline-block;
                        margin-right: 10px;
                        a {
                            color: #f8f8f8;
                            text-decoration: none;
                        }
                        a:hover {
                            color: #0D9BFF;
                        }
                    }
                }
            }
            .search {
                flex: 1;
                //background-color: red;
                margin-left: 100px;
                .search-box {
                    width: 560px;
                    height: 40px;
                    line-height: 40px;
                    border-radius: 100px;
                    background-color: rgba(255, 255, 255, 0.1);
                    display: flex;
                    flex-direction: row;
                    overflow: hidden;
                    a {
                        color: #d2d2d2
                    }
                    a:hover {
                        color: #0D9BFF;
                    }
                    .search-input {
                        flex: 1;
                        height: 38px;
                        margin-left: 17px;
                        background-color: rgba(255, 255, 255, 0);
                        outline:none;
                        border:none;
                        font-size: 16px;
                        text-rendering: auto;
                        color: #f8f8f8;
                    }
                    .hot-search-button {
                        width: 50px;
                        display: flex;
                        font-size: 12px;
                        img {
                            margin-top: 12px;
                            width: 15px;
                            height: 15px;
                        }
                        //background-color: blue;
                    }
                    .search-button-box {
                        width: 100px;
                        text-align: center;
                        background: #00b7ff;
                        color:#f8f8f8;
                        cursor: pointer;
                        img {
                            width: 15px;
                            height: 15px;
                        }
                        &:hover {
                            background: #00d3ff;
                        }
                    }
                }
            }
            .navs {
                width: 360px;
                display: flex;
                color: #fff;
                .nav-item {
                    width: 50px;
                    text-align: center;
                    margin-left: 10px;
                    .item-text {
                        font-size: 12px;
                    }
                    img {
                        width: 30px;
                        height: 30px;
                    }
                }

            }
        }

    }
</style>